function create_updated_collection(collection_a, object_b) {
  //在这里写入代码
  for(let i of collection_a)
  for(let j of object_b.value)
    {
      if(i.key==j)
      i.count--;

     
    }
  return collection_a;
}

module.exports = create_updated_collection;
